package scene01_Home;

import android.graphics.Paint;
import baseClass.Global;
import baseClass.Sprite_Touch;
import com.nPones.MainActivity;
import mainSrc.MainDirector;

public class Sprite_ButtonBG
  extends Sprite_Touch
{
  private boolean bIsActive = true;
  private int iSortOfBtn = 0;
  
  public Sprite_ButtonBG(int paramInt1, int paramInt2, int paramInt3, float paramFloat1, float paramFloat2, int paramInt4)
  {
    super(paramInt1, paramInt2, paramInt3, paramFloat1, paramFloat2);
    this.iSortOfBtn = paramInt4;
  }
  
  public void SetButtonActive(boolean paramBoolean)
  {
    this.bIsActive = paramBoolean;
  }
  
  public void Touch_Down(float paramFloat1, float paramFloat2, MainDirector paramMainDirector)
  {
    if (this.bIsActive) {
      this.paint.setAlpha(100);
    }
  }
  
  public void Touch_DownAndUp(float paramFloat1, float paramFloat2, MainDirector paramMainDirector)
  {
    if (this.bIsActive)
    {
      this.paint.setAlpha(255);
      paramMainDirector.m_Scene01.m_Layer01.visible = false;
      paramMainDirector.m_Scene01.m_Layer02.visible = false;
      paramMainDirector.m_Scene01.m_Layer03.visible = false;
      paramMainDirector.m_Scene01.m_Layer04.visible = false;
    }
    switch (this.iSortOfBtn)
    {
    default: 
      return;
    case 0: 
      paramMainDirector.m_Scene01.m_Layer01.visible = true;
      paramMainDirector.m_Scene01.m_Layer00.iLayerNumber = 0;
      return;
    case 1: 
      paramMainDirector.m_Scene01.m_Layer02.visible = true;
      paramMainDirector.m_Scene01.m_Layer00.iLayerNumber = 1;
      return;
    case 2: 
      paramMainDirector.m_Scene01.m_Layer00.iLayerNumber = 2;
      paramMainDirector.m_Scene01.m_Layer03.visible = true;
      return;
    }
    paramMainDirector.m_Scene01.m_Layer01.visible = true;
    Global.GetInstance().m_activity.QuitGame();
  }
  
  public void Touch_RangeOut()
  {
    this.paint.setAlpha(255);
  }
}


/* Location:           D:\Tool\AndroidKiller_v1.3.1\projects\petdesigner\ProjectSrc\classes-dex2jar.jar
 * Qualified Name:     scene01_Home.Sprite_ButtonBG
 * JD-Core Version:    0.7.0.1
 */